<?php
$this->breadcrumbs=array();

$this->sidebarTop = array(
    'label' => Yii::t('BackEnd', "Email template"),
    'link' => Yii::app()->request->baseUrl."/emailTemplate/index.html"
);

$this->menu=array(
	array('label'=>Yii::t('BackEnd', 'Update'), 'url'=>array('update', 'id'=>$model->id), 'visible'=>UserAccess::checkAccess('EmailTemplateUpdate')),
	//array('label'=>Yii::t('BackEnd', 'Delete').' '. Yii::t('BackEnd','EmailTemplate'), 'url'=>'#', 'visible'=>UserAccess::checkAccess('EmailTemplateDelete'), 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>Yii::t('BackEnd', 'Are you sure you want to delete this item?'))),
	array('label'=>Yii::t('BackEnd', 'List email templates'), 'url'=>array('index'), 'visible'=>!UserAccess::checkAccess('EmailTemplateAdmin')),
	array('label'=>Yii::t('BackEnd', 'Manage email templates'), 'url'=>array('admin'), 'visible'=>UserAccess::checkAccess('EmailTemplateAdmin')),
);

$this->slidebar=array(
	array('label'=>Yii::t('Global','Basic information'), 'name'=>'basic-info', 'rel'=>'EmailTemplate-basic-info'),
);

$this->title = Yii::t('BackEnd', 'Email template detail');
?>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'code',
		'title',
		'subject',
		array(
            'name' => 'body',
            'value' => $model->body,
            'type' => 'html',
        ),
		'from',
        array(
            'name' => 'params',
            'value' => unserialize($model->params)
        ),
		array(
            'name' => 'updated_time',
            'value' => $model->updated_time,
        ),
		array(
            'name'=>'status',
            'value'=> Lvc::getStatusName($model->status),
        ),
	),
)); ?>
